<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>WindowMouseY</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">WindowMouseY()</font></b></p>
<p><b>语法</b></p><blockquote>

y = <font color="#3A3966"><b>WindowMouseY</b></font>(#Window)      </blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Returns the mouse y position in the inner area of the given window. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Window</i></td>
<td width="90%"> 
要使用的窗口. 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



The mouse y position in the inner area of the specified window. If the 
mouse is outside of the window area, it will return -1. 

 

</blockquote><p><b>备注</b></p><blockquote>



To get the absolute y position of the mouse on the desktop, use <a href="../desktop/desktopmousey.html">DesktopMouseY()</a>. 

 

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">If</font></b> <font color="#3A3966">OpenWindow</font>(0, 0, 0, 300, 30, "Window mouse monitor", <font color="#924B72">#PB_Window_SystemMenu</font> | <font color="#924B72">#PB_Window_ScreenCentered</font>)
<font color="#3A3966">    TextGadget</font>(0, 10, 6, 200, 20, "")
    
    <b><font color="#3A3966">Repeat</font></b>
      Event =<font color="#3A3966"> WaitWindowEvent</font>(20) <font color="#3A3966">; return at least every 20ms for an update</font>
      
<font color="#3A3966">      SetGadgetText</font>(0, "Window mouse position: " +<font color="#3A3966"> Str</font>(<font color="#3A3966">WindowMouseX</font>(0)) + "," +<font color="#3A3966"> Str</font>(<font color="#3A3966">WindowMouseY</font>(0)))
    <b><font color="#3A3966">Until</font></b> Event = <font color="#924B72">#PB_Event_CloseWindow</font>
  <b><font color="#3A3966">EndIf</font></b>
</font></pre>

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=windowmousex.html>WindowMouseX()</a> - <a href="index.html">Window Index</a> - <a href="windowoutput.html">WindowOutput()</a> -&gt;<br><br>

</body></html>